package com.paipai.entity;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

public class  MyPaging <T> {
	
//	startdate:$('#startdate').val(),
//	enddate:$('#enddate').val(),
//	//当前页
//	pageNum:pageNum,
//	//每页显示数量
//	pageSize:8
	
	//搜索关键字
	private String uname;
	
	//时间
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startdate;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date enddate;
	
	//分页
	private int pageNum;
	private int pageSize;
	//总数据量
	private int count;
	//总页数
	private int pageCount;
	
	
	private List <T> list;
	
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public Date getStartdate() {
		return startdate;
	}
	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}
	public Date getEnddate() {
		return enddate;
	}
	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "MyPaging [uname=" + uname + ", startdate=" + startdate + ", enddate=" + enddate + ", pageNum=" + pageNum
				+ ", pageSize=" + pageSize + ", count=" + count + ", pageCount=" + pageCount + ", list=" + list + "]";
	}
	
	
	
	

}
